package com.ccy.search.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Slf4j
@Controller
public class IndexController {

    @GetMapping({"/", "/index.html"})
    public String indexPage(Model model){

        // 视图解析器进行拼串
        // classpath:/templates/.html
        return "list";
    }
}
